package com.wm.yigongfang.service;

import com.wm.yigongfang.common.entity.BaseEntity;
import com.wm.yigongfang.dao.JobDao;
import com.wm.yigongfang.dao.MachineTypeDao;
import com.wm.yigongfang.dto.req.AddJobReq;
import com.wm.yigongfang.entity.Job;
import com.wm.yigongfang.entity.MachineType;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author ZhangPeng
 * @Date 2024/3/7 17:53
 * @PackageName:com.wm.yigongfang.service
 * @ClassName: JobService
 * @Description: TODO
 */
@Service
public class JobService {

    @Resource
    private JobDao jobDao;
    @Resource
    private MachineTypeDao machineTypeDao;

    public List<Job> jobList() {
        return jobDao.lambdaQuery().eq(BaseEntity::getIsDelete, 0).list();
    }

    public List<MachineType> machineTypeList() {
        return machineTypeDao.lambdaQuery().eq(BaseEntity::getIsDelete, 0).list();
    }

    public void addJob(AddJobReq req) {

    }
}
